﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeHouse.Server.Dto;
using LeHouse.Server.Dal;

namespace LeHouse.Server.Service
{

    public class Collateral_IndoorService : BaseService<Collateral_Indoor>
    {
        Collateral_IndoorDAL dal = new Collateral_IndoorDAL();
        /// <summary>
        /// 户内部分的业务逻辑层
        /// </summary>
        protected override GenericBaseDAL<Collateral_Indoor> Dal
        {
            get { return new Collateral_IndoorDAL(); }
        }
        /// <summary>
        /// 根据报告号去查询户内的信息
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public Collateral_Indoor Community(string P_ReportNumber)
        {
            return dal.Facilitybyid(P_ReportNumber);
        }
        /// <summary>
        /// 根据报告号去查询户内是否有该条记录
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public int count(string P_ReportNumber)
        {
            return dal.count(P_ReportNumber);
        }
    }
}
